using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// User_Sub - 订阅表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(UserSubValidaTion))]
    public class UserSub : IUserSub<UserSub>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class UserSubValidaTion
       {

     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启论坛新帖通知
        /// </summary>
        [Display(Name ="是否开启论坛新帖通知")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsBBs
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启新博客通知
        /// </summary>
        [Display(Name ="是否开启新博客通知")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsBlog
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启新文档通知
        /// </summary>
        [Display(Name ="是否开启新文档通知")]
        [Required]
        public yq.Enums.BooleanType IsFile
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启维基通知
        /// </summary>
        [Display(Name ="是否开启维基通知")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsWiki
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启知道通知
        /// </summary>
        [Display(Name ="是否开启知道通知")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsKnow
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启他人对我评论的通知
        /// </summary>
        [Display(Name ="是否开启他人对我评论的通知")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsMy
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
